package com.mrd.gtimp.business.entity;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * <p> application name: sample <p> copyright: Copyright@2012 明睿达科技有限公司
 */

/**
 * @author winaya
 */
@Entity(name = "T_BIZ_ATTACHMENT")
public class Attachment implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @Id
    @GeneratedValue(generator = "paymentableGenerator")
    @GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
    @Column(name = "ID")
    private String id;
    /**
     * 存放位置
     */
    @Column(name = "PATH")
    private String path;
    /**
     * 附件名称
     */
    @Column(name = "NAME")
    private String name;
    /**
     * 备注
     */
    @Column(name = "REMARK")
    private String remark;

    private String CREATOR;

    private Date ctime;

    @Column(name = "REPLACENAME")
    private String replacename;


    @Column(name = "BILL_NO")
    private String bill_no;

    public Attachment() {
    }

    public Attachment(String id, String name, String bill_no) {
        this.id = id;
        this.name = name;
        this.bill_no = bill_no;
    }

    public String getBill_no() {
        return bill_no;
    }

    public void setBill_no(String bill_no) {
        this.bill_no = bill_no;
    }

    /**

     * 下载地址
     */
    @Transient
    private String dlUrl;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(updatable = false)
    public String getCREATOR() {
        return CREATOR;
    }

    public void setCREATOR(String cREATOR) {
        CREATOR = cREATOR;
    }

    @Column(updatable = false)
    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }


    public String getReplacename() {
        return replacename;
    }

    public void setReplacename(String replacename) {
        this.replacename = replacename;
    }

    public String getDlUrl() {
        return dlUrl;
    }

    public void setDlUrl(String dlUrl) {
        this.dlUrl = dlUrl;
    }

}
